﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BidPlanBusiness.aspx.cs" Inherits="lcs.Web.DemandPlan.BidPlanBusiness" EnableEventValidation="false"%>

<%@ Register Src="~/Controls/bidPlan.ascx" TagPrefix="uc1" TagName="bidPlan" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../../jquery-ui.min.css" rel="stylesheet" />
    <script src="../../js/jquery.js"></script>
    <script src="../../js/jquery-ui.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#txt_supplier").autocomplete({
                minLength: 1, // 设置搜索的关键字最小长度// 设置自动完成列表的函数，函数包括两个参数，requset和response      
                source: function (request, response) {
                    $.ajax({
                        type: "POST",          // 通过request.term可以获得文本框内容   
                        url: "Handler1.ashx?keyword=" + request.term,
                        contentType: "application/json; charset=gb2312",
                        dataType: "json",
                        success: function (data) {
                            // jQuery.map(array, callback) :将一个数组中的元素转换到另一个数组中。
                            //  下面就是把数组["value1", "value2",...]转换为[{value:"value1"}, {value:"value2"},...]                 
                            response($.map(data, function (item) {
                                return { value: item };
                            }));
                        },
                        error: function () {
                            alert("ajax请求失败");
                        }
                    });
                }
            });
        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-bottom:10px">
        <uc1:bidPlan runat="server" ID="bidPlan" />
        供应商：<asp:TextBox ID="txt_supplier" runat="server" Width="362px"></asp:TextBox>
&nbsp;<asp:Button ID="btn_adds" runat="server" OnClick="btn_adds_Click" Text="添加" Width="93px" />
    &nbsp;
        <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_Click" Text="提交财务确认标书费" />
    </div>
        <div style="text-align:center">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%">
                <Columns>
                    <asp:BoundField DataField="sname" HeaderText="供用商" />
                    <asp:BoundField DataField="slink" HeaderText="联系人" />
                    <asp:BoundField DataField="sphone" HeaderText="联系电话" />
                    <asp:BoundField DataField="isBidFeestr" HeaderText="是否收取标书费" />
                    <asp:BoundField DataField="isBidDepositstr" HeaderText="是否收取投标保证金" />
                    <asp:BoundField DataField="confirmBidFee_user_name" HeaderText="收取标书费确认人" />
                    <asp:BoundField DataField="bidFeeTime" HeaderText="收取标书费确认时间" />
                    <asp:BoundField DataField="confirmBidDeposit_user_name" HeaderText="收取保证金确认人" />
                    <asp:BoundField DataField="bidDepositTime" HeaderText="收取保证金确认时间" />
                    <asp:BoundField DataField="sub_uname" HeaderText="提交人" />
                </Columns>
            </asp:GridView>
        </div>
    </form>
</body>
</html>
